<template>
	<view class="index">
		<view class="button" @click="exit">退出登录</view>
	</view>
</template>

<script>
	export default{
		data() {
			
		},
		methods: {
			exit() {
				uni.removeStorageSync('token');
			
				uni.showToast({
					title: '退出成功，请重新登录！',
					icon: 'none'
				}).then(() => {
					uni.reLaunch({
						url: '/pages/user/second/login'
					});
				});
			},
		}
	}
</script>

<style scoped lang="scss">
	.index{
		width: 100%;
		margin: 0 auto;
		
		.button{
			position: fixed;
			width: 94%;
			bottom: 40rpx;
			left: 3%;
			text-align: center;
			height: 80rpx;
			line-height: 80rpx;
			border-radius: 10rpx;
			background: linear-gradient(270deg, #EAC59F, #E4B985, #FFF9CE);
			color: #806B1A;
			font-size: 36rpx;
		}
	}
</style>